home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 23
/
023.d81
/
123 directory
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
1KB
|
48 lines
5 dimc$(2,99)
7 printchr$(147)
10 fori=0to2:forj=0to99:c$(i,j)="":nextj,i
20 print"how many disks(1-3):"
21 print"x to return to loadstar"
22 getn$:ifn$="" then22
23 if n$="x" then t$="n" : goto 370
24 n=val(n$)
25 ifn<1orn>3then20
30 fori=0ton-1:l=0:print
40 print"insert disk#";i+1
50 print"hit any key when ready!"
60 getz$:ifz$=""then60
70 open1,8,0,"$0":n$=chr$(0)
80 get#1,a$,a$
85 get#1,a$,a$
90 ifa$=""then130
100 get#1,a$,b$:x=asc(a$+n$)+asc(b$+n$)*256:c$(i,l)=str$(x)
110 get#1,a$:ifa$=chr$(34)then110
120 ifa$=""thenc$(i,l)=mid$(c$(i,l),1,26):l=l+1:goto85
125 c$(i,l)=c$(i,l)+a$:goto110
130 close1:c$(i,l)="xxx":nexti
150 print"ready printer and press a key"
160 gett$:ift$="" then 160
200 open5,4:a1=0:a2=0:a3=0:l=0
201 ifn=1thenprint#5,c$(0,l):l=l+1:goto210
202 ifn=2thenprint#5,c$(0,l);chr$(146)spc(2)c$(1,l):l=l+1:goto210
205 print#5,c$(0,l);chr$(146)spc(2)c$(1,l);chr$(146)spc(2)c$(2,l):l=l+1
210 ifa1=1orc$(0,l)="xxx"thena1=1:print#5,tab(26);:goto250
240 print#5,c$(0,l);
250 ifn=1thenifa1=1thenprint#5:close5:goto340
255 ifn=1thenl=l+1:print#5:goto210
260 ifa2=1orc$(1,l)="xxx"thena2=1:print#5,tab(26);:goto280
270 ifa1=1thenprint#5,c$(1,l);:goto280
275 print#5,tab(26-len(c$(0,l)));c$(1,l);
280 ifn=2thenifa1=1anda2=1thenprint#5:close5:goto340
290 ifn=2thenl=l+1:print#5:goto210
300 ifa3=1orc$(2,l)="xxx"thena3=1:print#5:goto320
310 ifa2=1thenprint#5,c$(2,l):goto320
315 print#5,tab(26-len(c$(1,l)));c$(2,l)
320 ifa1=1anda2=1anda3=1thenprint#5:close5:goto340
330 l=l+1:goto210
340 print"[147]go again?"
350 gett$:ift$="" then350
360 ift$="y"thenrun
370 ift$="n" then load"hello connect",8
380 goto350